home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 8.9 KB | 343 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:WinStatB.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODBaseWindowState_xh
- #define SOM_ODBaseWindowState_xh
-
- class ODBaseWindowState;
-
- #define ODBaseWindowState_MajorVersion 1
- #define ODBaseWindowState_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODBaseWindowState_API
- #define ODBaseWindowState_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODWindow;
- class ODWindowIterator;
- class ODMenuBar;
- class ODSession;
- class ODPart;
- class ODFrame;
- class ODDraft;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODBaseWindowState Class */
- SOMEXTERN SOMClass * SOMLINK ODBaseWindowStateNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODBaseWindowState class object, and the methods it introduces. */
- typedef struct ODBaseWindowStateClassDataStructure {
- SOMClass *classObject;
- somMToken CreateWindow;
- somMToken GetWindow;
- somMToken Internalize;
- somMToken Externalize;
- somMToken SetDefaultWindowTitles;
- somMToken OpenWindows;
- somMToken CloseWindows;
- somMToken GetWindowCount;
- somMToken GetRootWindowCount;
- somMToken GetTotalRootWindowCount;
- somMToken IsODWindow;
- somMToken GetODWindow;
- somMToken CreateWindowIterator;
- somMToken GetActiveWindow;
- somMToken SetBaseMenuBar;
- somMToken CopyBaseMenuBar;
- somMToken AdjustPartMenus;
- somMToken reserved1;
- } ODBaseWindowStateClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODBaseWindowStateClassDataStructure * ODBaseWindowStateGetClassData ( void );
- # undef ODBaseWindowStateClassData
- # define ODBaseWindowStateClassData (*ODBaseWindowStateGetClassData())
- #else
- SOMEXTERN ODBaseWindowStateClassDataStructure ODBaseWindowStateClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODBaseWindowState ODBaseWindowStateClassData.classObject
-
- /* The API to parentMtabs for ODBaseWindowState, and the instance data it introduces. */
- SOMEXTERN struct ODBaseWindowStateCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODBaseWindowStateCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODBaseWindowState
- */
- SOMEXTERN {
- typedef ODWindow* (* SOMLINK somTD_ODBaseWindowState_CreateWindow)(ODBaseWindowState *somSelf, Environment *ev,
- ODPlatformWindow newWindow,
- ODBoolean isRootWindow,
- ODBoolean isResizable,
- ODBoolean isFloating,
- ODBoolean shouldSave,
- ODPart* rootPart,
- ODTypeToken viewType,
- ODTypeToken presentation,
- ODFrame* sourceFrame);
- typedef ODWindow* (* SOMLINK somTD_ODBaseWindowState_GetWindow)(ODBaseWindowState *somSelf, Environment *ev,
- ODID id);
- typedef void (* SOMLINK somTD_ODBaseWindowState_Internalize)(ODBaseWindowState *somSelf, Environment *ev,
- ODDraft* draft);
- typedef void (* SOMLINK somTD_ODBaseWindowState_Externalize)(ODBaseWindowState *somSelf, Environment *ev,
- ODDraft* draft);
- typedef void (* SOMLINK somTD_ODBaseWindowState_SetDefaultWindowTitles)(ODBaseWindowState *somSelf, Environment *ev,
- ODDraft* draft);
- typedef void (* SOMLINK somTD_ODBaseWindowState_OpenWindows)(ODBaseWindowState *somSelf, Environment *ev,
- ODDraft* draft);
- typedef void (* SOMLINK somTD_ODBaseWindowState_CloseWindows)(ODBaseWindowState *somSelf, Environment *ev,
- ODDraft* draft);
- typedef ODUShort (* SOMLINK somTD_ODBaseWindowState_GetWindowCount)(ODBaseWindowState *somSelf, Environment *ev);
- typedef ODUShort (* SOMLINK somTD_ODBaseWindowState_GetRootWindowCount)(ODBaseWindowState *somSelf, Environment *ev,
- ODDraft* draft);
- typedef ODUShort (* SOMLINK somTD_ODBaseWindowState_GetTotalRootWindowCount)(ODBaseWindowState *somSelf, Environment *ev);
- typedef ODBoolean (* SOMLINK somTD_ODBaseWindowState_IsODWindow)(ODBaseWindowState *somSelf, Environment *ev,
- ODPlatformWindow aWindow);
- typedef ODWindow* (* SOMLINK somTD_ODBaseWindowState_GetODWindow)(ODBaseWindowState *somSelf, Environment *ev,
- ODPlatformWindow aWindow);
- typedef ODWindowIterator* (* SOMLINK somTD_ODBaseWindowState_CreateWindowIterator)(ODBaseWindowState *somSelf, Environment *ev);
- typedef ODWindow* (* SOMLINK somTD_ODBaseWindowState_GetActiveWindow)(ODBaseWindowState *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODBaseWindowState_SetBaseMenuBar)(ODBaseWindowState *somSelf, Environment *ev,
- ODMenuBar* theMenuBar);
- typedef ODMenuBar* (* SOMLINK somTD_ODBaseWindowState_CopyBaseMenuBar)(ODBaseWindowState *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODBaseWindowState_AdjustPartMenus)(ODBaseWindowState *somSelf, Environment *ev);
- }
-
- #endif /* ODBaseWindowState_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODBaseWindowState
- */
- class ODBaseWindowState : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODBaseWindowStateClassData.classObject)
- ODBaseWindowStateNewClass(ODBaseWindowState_MajorVersion,ODBaseWindowState_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODBaseWindowStateClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODBaseWindowStateClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: CreateWindow */
- ODWindow* CreateWindow(Environment *ev,
- ODPlatformWindow newWindow,
- ODBoolean isRootWindow,
- ODBoolean isResizable,
- ODBoolean isFloating,
- ODBoolean shouldSave,
- ODPart* rootPart,
- ODTypeToken viewType,
- ODTypeToken presentation,
- ODFrame* sourceFrame)
- {
- return SOM_Resolve(this,ODBaseWindowState,CreateWindow)
- (this,ev,newWindow,isRootWindow,isResizable,isFloating,shouldSave,rootPart,viewType,presentation,sourceFrame);
- }
-
-
- /* public method: GetWindow */
- ODWindow* GetWindow(Environment *ev,
- ODID id)
- {
- return SOM_Resolve(this,ODBaseWindowState,GetWindow)
- (this,ev,id);
- }
-
-
- /* public method: Internalize */
- void Internalize(Environment *ev,
- ODDraft* draft)
- {
- SOM_Resolve(this,ODBaseWindowState,Internalize)
- (this,ev,draft);
- }
-
-
- /* public method: Externalize */
- void Externalize(Environment *ev,
- ODDraft* draft)
- {
- SOM_Resolve(this,ODBaseWindowState,Externalize)
- (this,ev,draft);
- }
-
-
- /* public method: SetDefaultWindowTitles */
- void SetDefaultWindowTitles(Environment *ev,
- ODDraft* draft)
- {
- SOM_Resolve(this,ODBaseWindowState,SetDefaultWindowTitles)
- (this,ev,draft);
- }
-
-
- /* public method: OpenWindows */
- void OpenWindows(Environment *ev,
- ODDraft* draft)
- {
- SOM_Resolve(this,ODBaseWindowState,OpenWindows)
- (this,ev,draft);
- }
-
-
- /* public method: CloseWindows */
- void CloseWindows(Environment *ev,
- ODDraft* draft)
- {
- SOM_Resolve(this,ODBaseWindowState,CloseWindows)
- (this,ev,draft);
- }
-
-
- /* public method: GetWindowCount */
- ODUShort GetWindowCount(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseWindowState,GetWindowCount)
- (this,ev);
- }
-
-
- /* public method: GetRootWindowCount */
- ODUShort GetRootWindowCount(Environment *ev,
- ODDraft* draft)
- {
- return SOM_Resolve(this,ODBaseWindowState,GetRootWindowCount)
- (this,ev,draft);
- }
-
-
- /* public method: GetTotalRootWindowCount */
- ODUShort GetTotalRootWindowCount(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseWindowState,GetTotalRootWindowCount)
- (this,ev);
- }
-
-
- /* public method: IsODWindow */
- ODBoolean IsODWindow(Environment *ev,
- ODPlatformWindow aWindow)
- {
- return SOM_Resolve(this,ODBaseWindowState,IsODWindow)
- (this,ev,aWindow);
- }
-
-
- /* public method: GetODWindow */
- ODWindow* GetODWindow(Environment *ev,
- ODPlatformWindow aWindow)
- {
- return SOM_Resolve(this,ODBaseWindowState,GetODWindow)
- (this,ev,aWindow);
- }
-
-
- /* public method: CreateWindowIterator */
- ODWindowIterator* CreateWindowIterator(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseWindowState,CreateWindowIterator)
- (this,ev);
- }
-
-
- /* public method: GetActiveWindow */
- ODWindow* GetActiveWindow(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseWindowState,GetActiveWindow)
- (this,ev);
- }
-
-
- /* public method: SetBaseMenuBar */
- void SetBaseMenuBar(Environment *ev,
- ODMenuBar* theMenuBar)
- {
- SOM_Resolve(this,ODBaseWindowState,SetBaseMenuBar)
- (this,ev,theMenuBar);
- }
-
-
- /* public method: CopyBaseMenuBar */
- ODMenuBar* CopyBaseMenuBar(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseWindowState,CopyBaseMenuBar)
- (this,ev);
- }
-
-
- /* public method: AdjustPartMenus */
- void AdjustPartMenus(Environment *ev)
- {
- SOM_Resolve(this,ODBaseWindowState,AdjustPartMenus)
- (this,ev);
- }
-
-
-
- }; /* ODBaseWindowState */
-
-
-
- #endif /* SOM_ODBaseWindowState_xh */
-